package com.qiujie.controller;

import com.qiujie.dto.ResponseDTO;
import com.qiujie.entity.Config;
import com.qiujie.entity.Staff;
import com.qiujie.service.ConfigService;
import com.qiujie.service.StaffService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/configInfo")
public class ConfigBasicController {

    @Resource
    private ConfigService configService;


    @ApiOperation("查询所有")
    @PostMapping("/all")
    public ResponseDTO findAll(@RequestBody Config config){
        return this.configService.list(config);
    }

}
